#!/usr/bin/perl
$lastOne = "";
while($line=<STDIN>) {
	chomp($line);
	if($line=~/^Sentence Number/) {
		print $lastOne."\n" if($lastOne ne "");
	}
	else {
		$lastOne = $line;
	}
}
print $lastOne."\n" if($lastOne ne "");
